/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/',
    component: () => import('@/views/layouts/index'),
    redirect: '/home',
    meta: {
      title: '资讯',
      keepAlive: false
    },
    children: [
      {
        path: '/home',
        name: 'Home',
        component: () => import('@/views/home/index'),
        meta: { title: '资讯', keepAlive: false }
      },
      {
        path: '/voting',
        name: 'Voting',
        component: () => import('@/views/home/voting'),
        meta: { title: '投票', keepAlive: false }
      },
      {
        path: '/live',
        name: 'Live',
        component: () => import('@/views/live/index'),
        meta: { title: '直播', keepAlive: false }
      },
      {
        path: '/ranking',
        name: 'ranking',
        component: () => import('@/views/ranking/index'),
        meta: { title: '榜单', keepAlive: false }
      }
    ]
  },
  {
    path: '/voting/competition',
    name: 'Competition',
    meta: {
      title: '东部赛区丨选手投票',
      keepAlive: true,
      backgroundColor: '#fff'
    },
    component: () => import ('@/views/voting/competition.vue')
  },
  {
    path: '/vote/detailCompetition',
    name: 'DetailCompetition',
    meta: {
      title: '选手投票丨001 《告白气球》',
      keepAlive: false,
      isBack:false,
      backgroundColor: '#fff'
    },
    component: () => import ('@/views/voting/detailCompetition.vue')
  },
  {
    path: '/home/newDetails',
    name: 'NewDetails',
    meta: {
      title: '资讯详情',
      keepAlive: false,
      backgroundColor: '#fff'
    },
    component: () => import ('@/views/home/newDetails')
  }, {
    path: '/live/backplay',
    name: 'backplay',
    meta: {
      title: '往期回放',
      keepAlive: false,
      backgroundColor: '#fff'
    },
    component: () => import ('@/views/live/backplay')
  }, {
    path: '/live/detail',
    name: 'detail',
    meta: {
      title: '现场直播',
      keepAlive: false,
      backgroundColor: '#fff'
    },
    component: () => import ('@/views/live/detail')
  }, {
    path: '/ranking/detail',
    name: 'rankingDetail',
    meta: {
      title: '热力榜单',
      keepAlive: false,
      backgroundColor: '#fff'
    },
    component: () => import ('@/views/ranking/detail')
  }
]
